package com.rainbow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rainbow.entity.Employee;
import com.rainbow.entity.Nation;
import com.rainbow.entity.PoliticsStatus;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface EmployeeService extends IService<Employee> {
    List<Nation> getAllNations();

    List<PoliticsStatus> getAllPolitics();

    int addEmp(Employee employee);

    Long getMaxWorkID();

    List<Employee> getEmployeeByPage(Integer page, Integer size, String keywords, Long politicId, Long nationId, Long posId, Long jobLevelId, String engageForm, Long departmentId, String beginDateScope);

    Long getCountByKeywords(String keywords, Long politicId, Long nationId, Long posId, Long jobLevelId, String engageForm, Long departmentId, String beginDateScope);

    int updateEmp(Employee employee);

    boolean deleteEmpById(String ids);

    List<Employee> getAllEmployees();

    int addEmps(List<Employee> emps);

    List<Employee> getEmployeeByPageShort(Integer page, Integer size);
}
